

var aArray = new Array( 5 );


for( var i = 0; i < aArray.length; i = i + 1 )
{
	aArray[ i ] = 0;
}



function showImage( nIndex )
{
	aArray[ nIndex ] = aArray[ nIndex ] + 1;
}




function showChina()
{
	aArray[ 0 ] = aArray[ 0 ] + 1;
}

function showJapan()
{
	aArray[ 1 ] = aArray[ 1 ] + 1;
}

function showIndia()
{
	aArray[ 2 ] = aArray[ 2 ] + 1;
}

function showPhilippines()
{
	aArray[ 3 ] = aArray[ 3 ] + 1;
}

function showNorthKorea()
{
	aArray[ 4 ] = aArray[ 4 ] + 1;
}

function showFinish()
{
		
	if( aArray[ 0 ] > 0 && aArray[ 1 ] > 0 && aArray[ 2 ] > 0 
			&& aArray[ 3 ] > 0 && aArray[ 4 ] > 0 )
	{
		alert( "CONGRATULATIONS! " + aArray);
		window.location = "index3.html"	;
	}
	else
	{
		alert( "YOU DIDN'T FINISH" );
	}
}
